<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>File Source for routes.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
						<h1>Source for file routes.php</h1>
<p>Documentation is available at <a href="../cake/cake-app-config/_config---routes.php.html">routes.php</a></p>
<div class="src-code">
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php">&lt;?php</span></div></li>
<li><div class="src-line"><a name="a2"></a><span class="src-comm">/*&nbsp;SVN&nbsp;FILE:&nbsp;$Id$&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a3"></a><span class="src-comm">/**</span></div></li>
<li><div class="src-line"><a name="a4"></a><span class="src-comm">&nbsp;*&nbsp;Short&nbsp;description&nbsp;for&nbsp;file.</span></div></li>
<li><div class="src-line"><a name="a5"></a><span class="src-comm">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a6"></a><span class="src-comm">&nbsp;*&nbsp;In&nbsp;this&nbsp;file,&nbsp;you&nbsp;set&nbsp;up&nbsp;routes&nbsp;to&nbsp;your&nbsp;controllers&nbsp;and&nbsp;their&nbsp;actions.</span></div></li>
<li><div class="src-line"><a name="a7"></a><span class="src-comm">&nbsp;*&nbsp;Routes&nbsp;are&nbsp;very&nbsp;important&nbsp;mechanism&nbsp;that&nbsp;allows&nbsp;you&nbsp;to&nbsp;freely&nbsp;connect</span></div></li>
<li><div class="src-line"><a name="a8"></a><span class="src-comm">&nbsp;*&nbsp;different&nbsp;urls&nbsp;to&nbsp;chosen&nbsp;controllers&nbsp;and&nbsp;their&nbsp;actions&nbsp;(functions).</span></div></li>
<li><div class="src-line"><a name="a9"></a><span class="src-comm">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a10"></a><span class="src-comm">&nbsp;*&nbsp;PHP&nbsp;versions&nbsp;4&nbsp;and&nbsp;5</span></div></li>
<li><div class="src-line"><a name="a11"></a><span class="src-comm">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a12"></a><span class="src-comm">&nbsp;*&nbsp;CakePHP(tm)&nbsp;:&nbsp;&nbsp;Rapid&nbsp;Development&nbsp;Framework&nbsp;(http://www.cakephp.org)</span></div></li>
<li><div class="src-line"><a name="a13"></a><span class="src-comm">&nbsp;*&nbsp;Copyright&nbsp;2005-2008,&nbsp;Cake&nbsp;Software&nbsp;Foundation,&nbsp;Inc.&nbsp;(http://www.cakefoundation.org)</span></div></li>
<li><div class="src-line"><a name="a14"></a><span class="src-comm">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a15"></a><span class="src-comm">&nbsp;*&nbsp;Licensed&nbsp;under&nbsp;The&nbsp;MIT&nbsp;License</span></div></li>
<li><div class="src-line"><a name="a16"></a><span class="src-comm">&nbsp;*&nbsp;Redistributions&nbsp;of&nbsp;files&nbsp;must&nbsp;retain&nbsp;the&nbsp;above&nbsp;copyright&nbsp;notice.</span></div></li>
<li><div class="src-line"><a name="a17"></a><span class="src-comm">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a18"></a><span class="src-comm">&nbsp;*&nbsp;@filesource</span></div></li>
<li><div class="src-line"><a name="a19"></a><span class="src-comm">&nbsp;*&nbsp;@copyright&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copyright&nbsp;2005-2008,&nbsp;Cake&nbsp;Software&nbsp;Foundation,&nbsp;Inc.&nbsp;(http://www.cakefoundation.org)</span></div></li>
<li><div class="src-line"><a name="a20"></a><span class="src-comm">&nbsp;*&nbsp;@link&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.cakefoundation.org/projects/info/cakephp&nbsp;CakePHP(tm)&nbsp;Project</span></div></li>
<li><div class="src-line"><a name="a21"></a><span class="src-comm">&nbsp;*&nbsp;@package&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cake</span></div></li>
<li><div class="src-line"><a name="a22"></a><span class="src-comm">&nbsp;*&nbsp;@subpackage&nbsp;&nbsp;&nbsp;&nbsp;cake.app.config</span></div></li>
<li><div class="src-line"><a name="a23"></a><span class="src-comm">&nbsp;*&nbsp;@since&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CakePHP(tm)&nbsp;v&nbsp;0.2.9</span></div></li>
<li><div class="src-line"><a name="a24"></a><span class="src-comm">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision$</span></div></li>
<li><div class="src-line"><a name="a25"></a><span class="src-comm">&nbsp;*&nbsp;@modifiedby&nbsp;&nbsp;&nbsp;&nbsp;$LastChangedBy$</span></div></li>
<li><div class="src-line"><a name="a26"></a><span class="src-comm">&nbsp;*&nbsp;@lastmodified&nbsp;&nbsp;$Date$</span></div></li>
<li><div class="src-line"><a name="a27"></a><span class="src-comm">&nbsp;*&nbsp;@license&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.opensource.org/licenses/mit-license.php&nbsp;The&nbsp;MIT&nbsp;License</span></div></li>
<li><div class="src-line"><a name="a28"></a><span class="src-comm">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a29"></a><span class="src-comm">/**</span></div></li>
<li><div class="src-line"><a name="a30"></a><span class="src-comm">&nbsp;*&nbsp;Here,&nbsp;we&nbsp;are&nbsp;connecting&nbsp;'/'&nbsp;(base&nbsp;path)&nbsp;to&nbsp;controller&nbsp;called&nbsp;'Pages',</span></div></li>
<li><div class="src-line"><a name="a31"></a><span class="src-comm">&nbsp;*&nbsp;its&nbsp;action&nbsp;called&nbsp;'display',&nbsp;and&nbsp;we&nbsp;pass&nbsp;a&nbsp;param&nbsp;to&nbsp;select&nbsp;the&nbsp;view&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a32"></a><span class="src-comm">&nbsp;*&nbsp;to&nbsp;use&nbsp;(in&nbsp;this&nbsp;case,&nbsp;/app/views/pages/home.ctp)...</span></div></li>
<li><div class="src-line"><a name="a33"></a><span class="src-comm">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a34"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id">Router</span><span class="src-sym">::</span><span class="src-id">connect</span><span class="src-sym">(</span><span class="src-str">'/'</span><span class="src-sym">,&nbsp;</span><span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'controller'&nbsp;</span>=&gt;&nbsp;<span class="src-str">'pages'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'action'&nbsp;</span>=&gt;&nbsp;<span class="src-str">'display'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'home'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a35"></a><span class="src-comm">/**</span></div></li>
<li><div class="src-line"><a name="a36"></a><span class="src-comm">&nbsp;*&nbsp;...and&nbsp;connect&nbsp;the&nbsp;rest&nbsp;of&nbsp;'Pages'&nbsp;controller's&nbsp;urls.</span></div></li>
<li><div class="src-line"><a name="a37"></a><span class="src-comm">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a38"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id">Router</span><span class="src-sym">::</span><span class="src-id">connect</span><span class="src-sym">(</span><span class="src-str">'/pages/*'</span><span class="src-sym">,&nbsp;</span><span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'controller'&nbsp;</span>=&gt;&nbsp;<span class="src-str">'pages'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'action'&nbsp;</span>=&gt;&nbsp;<span class="src-str">'display'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a39"></a><span class="src-php">?&gt;</span></div></li>
</ol></div>
</div>
	<p class="notes" id="credit">
		Documentation generated on Fri, 06 Nov 2009 10:53:59 +0900 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</body>
</html>